package com.aboverock.module.system.domain;

import com.aboverock.core.orm.domain.StringBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * 
 *
 * @author Rock Wang
 * @since 2018-10-31
 */
@TableName("t_sys_log")
@ApiModel(value="Log对象", description="")
public class Log extends StringBaseEntity {

    @ApiModelProperty(value = "日志类型")
    private Integer type;

    @TableField(exist = false)
    private String typeShow;

    @ApiModelProperty(value = "HTTP操作请求用户")
    private String loginName;

    @ApiModelProperty(value = "HTTP操作请求")
    private String request;

    @ApiModelProperty(value = "HTTP请求方法")
    private String httpMethod;

    @ApiModelProperty(value = "请求/异常详情")
    private String details;

    @ApiModelProperty(value = "请求时间")
    private Date requestTime;

    @ApiModelProperty(value = "请求耗时")
    private String operationTime;

    @ApiModelProperty(value = "客户端（浏览器）类型")
    private String browserType;

    @ApiModelProperty(value = "ip")
    private String ip;



    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getRequest() {
        return request;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public String getHttpMethod() {
        return httpMethod;
    }

    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }

    public String getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(String operationTime) {
        this.operationTime = operationTime;
    }

    public String getBrowserType() {
        return browserType;
    }

    public void setBrowserType(String browserType) {
        this.browserType = browserType;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public String toString() {
        return "Log{" +
        "type=" + type +
        ", loginName=" + loginName +
        ", request=" + request +
        ", httpMethod=" + httpMethod +
        ", details=" + details +
        ", requestTime=" + requestTime +
        ", operationTime=" + operationTime +
        ", browserType=" + browserType + ", ip=" + ip +
        "}";
    }

    public String getTypeShow() {
        return typeShow;
    }

    public void setTypeShow(String typeShow) {
        this.typeShow = typeShow;
    }
}
